<dev xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:c="http://java.sun.com/jsp/jstl/core"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:p="http://primefaces.org/ui">
    <c:set var="root" value="#{request.contextPath}" />

    <ui:composition template="../template/common.xhtml" >
        <ui:define name="topComponents">
            <c:set var="activeItem" value="productPage"/>
            <ui:include src="../navigator.xhtml" />
        </ui:define>
        <ui:define name="content">
            <div class="span12">
                <div class="well">
                    <h:form>
                        <p:messages id="messages" showDetail="false" autoUpdate="true" closable="false" />
                        <div class="control-group"> 
                            Price:
                            <div class="controls">
                                <p:inputText value="#{priceCuCtrl.price.val}" >
                                    <f:convertNumber />
                                </p:inputText>
                            </div>
                        </div>
                        <div class="control-group"> 
                            Unit:
                            <div class="controls">
                                <p:inputText value="#{priceCuCtrl.price.unit}" >
                                </p:inputText>
                            </div>
                        </div>
                        <div class="control-group"> 
                            Apply date:
                            <div class="controls">
                                <p:calendar value="#{priceCuCtrl.price.applyDateTime}" mode="inline" id="inlineCal"/>    
                                <!--<p:calendar value="#{priceCuCtrl.test}" mode="inline" id="inlineCal2"/>-->    

                            </div>
                        </div>
                        <h:commandButton value="Update" styleClass="btn" action="#{priceCuCtrl.update()}"/>
                        <h:commandButton value="Cancel" action="#{priceCuCtrl.cancel()}" styleClass="btn"  />
                    </h:form>
                </div>
            </div>
        </ui:define>
    </ui:composition>
</dev>